home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / bc_pas_2.zip / TARGET.INC < prev    next >
Text File  |  1992-07-17  |  4KB  |  194 lines

  1.  
  2. ;   /*\
  3. ;---|*|----====< TARGET.INC >====----
  4. ;---|*|
  5. ;---|*| This file defines which product is being compiled. This is used
  6. ;---|*| for the PAS software libraries, etc.
  7. ;---|*|
  8. ;---|*| Copyright (c) 1992, Media Vision, Inc.    All Rights Reserved.
  9. ;---|*|
  10. ;---|*| To use this code, you must define one of the following variable names.
  11. ;---|*|
  12. ;---|*|    BUILD_NONE - General assembly of header. No target product defined
  13. ;---|*|    BUILD_PAS1 - Original Pro Audio Spectrum.
  14. ;---|*|    BUILD_PAS2 - Pro Audio Spectrum Plus.
  15. ;---|*|    BUILD_PAS3 - Pro Audio Spectrum 16.
  16. ;---|*|    BUILD_CDPC - CDPC.
  17. ;---|*|
  18. ;   \*/
  19.  
  20. ;;
  21. ;; Each product will some/all of of these features
  22. ;;
  23.  
  24. bMVA508     =    0000000000000001b    ; MVA508(1) or National(0)
  25. bMVPS2        =    0000000000000010b    ; PS2 bus stuff
  26. bMVSLAVE    =    0000000000000100b    ; CDPC Slave device is present
  27. bMVSCSI     =    0000000000001000b    ; SCSI interface
  28. bMVENHSCSI    =    0000000000010000b    ; Enhanced SCSI interface
  29. bMVSONY     =    0000000000100000b    ; Sony 535 interface
  30. bMVDAC16    =    0000000001000000b    ; 16 bit DAC
  31. bMVSBEMUL    =    0000000010000000b    ; SB h/w emulation
  32. bMVMPUEMUL    =    0000000100000000b    ; MPU h/w emulation
  33. bMVOPL3         =       0000001000000000b       ; OPL3(1) or 3812(0)
  34. bMV101        =    0000010000000000b    ; MV101 ASIC
  35. bMV101_REV    =    0111100000000000b    ; MV101 Revision
  36. bMV101_MORE    =    1000000000000000b    ; more bits in BX
  37.  
  38. ;;
  39. ;; Define the ASIC versions
  40. ;;
  41.  
  42. ASIC_VERSION_B    =    0000000000000010b    ; revision B
  43. ASIC_VERSION_C    =    0000000000000011b    ; revision C
  44. ASIC_VERSION_D    =    0000000000000100b    ; revision D
  45. ASIC_VERSION_E    =    0000000000000101b    ; revision E
  46. ASIC_VERSION_F    =    0000000000000110b    ; revision F
  47.  
  48. ;;
  49. ;; First Pro Audio Spectrum feature list
  50. ;;
  51. PRODUCT_PROAUDIO        =       bMVSCSI
  52.  
  53. ;;
  54. ;; Pro Audio Plus feature list
  55. ;;
  56. PRODUCT_PROPLUS         =       bMV101+      \
  57.                 bMVSCSI+     \
  58.                 bMVENHSCSI+  \
  59.                 bMVSBEMUL+   \
  60.                 bMVOPL3
  61. ;;
  62. ;; Pro Audio Spectrum 16 feature list
  63. ;;
  64. PRODUCT_PRO16           =       bMV101+      \
  65.                 bMVA508+     \
  66.                 bMVSCSI+     \
  67.                 bMVENHSCSI+  \
  68.                 bMVSBEMUL+   \
  69.                 bMVDAC16+    \
  70.                 bMVOPL3
  71. ;;
  72. ;; CDPC feature list
  73. ;;
  74. PRODUCT_CDPC        =    bMV101+      \
  75.                 bMVSLAVE+    \
  76.                 bMVSONY+     \
  77.                 bMVSBEMUL+   \
  78.                 bMVDAC16+    \
  79.                 bMVOPL3
  80.  
  81.  
  82. ;;
  83. ;; Set each one to zero - to be init later if selected
  84. ;;
  85.  
  86. PROAS100    =    0
  87. PROAS200    =    0
  88. PROAS300    =    0
  89. CDPC        =    0
  90.  
  91. PRODUCTDEFINED  =       0               ;; to be set if a product is selected
  92.  
  93. ;;
  94. ;;----====<  1st retail version of the Pro Audio Spectrum. >====----
  95. ;;
  96.  
  97. ifdef BUILD_PAS1
  98. PROAS100    =    1        ;; 1st board - Pro Audio Spectrum
  99. PRODUCTDEFINED    =    PRODUCT_PROAUDIO
  100. if1
  101.  %OUT Building the Original PAS code
  102. endif
  103. endif
  104.  
  105. ;;
  106. ;;----====< 8 bit Integrated PAS with rev 2 of the MV101 >====----
  107. ;;
  108.  
  109. ifdef BUILD_PAS2
  110. PROAS200    =    1        ;; 2nd board - Pro Audio Spectrum
  111. PRODUCTDEFINED    =    PRODUCT_PROPLUS
  112. if1
  113.  %OUT Building PAS-8 code
  114. endif
  115. endif
  116.  
  117. ;;
  118. ;;----====< 16 bit Integrated PAS with rev 2 of the MV101 >====----
  119. ;;
  120.  
  121. ifdef BUILD_PAS3
  122. PROAS300    =    1        ;; 3rd board - Pro Audio Spectrum
  123. PRODUCTDEFINED    =    PRODUCT_PRO16
  124. if1
  125.  %OUT Building PAS-16 code
  126. endif
  127. endif
  128.  
  129. ;;
  130. ;;----====< 1st CDPC box >====----
  131. ;;
  132.  
  133. ifdef BUILD_CDPC
  134. CDPC        =    1        ;; CDPC stand alone box
  135. PRODUCTDEFINED    =    PRODUCT_CDPC
  136. if1
  137.  %OUT Building CDPC code
  138. endif
  139. endif
  140.  
  141. ;;
  142. ;;----====< Generate an error if no product is defined >====----
  143. ;;
  144.  
  145. ife PRODUCTDEFINED
  146.     ifdef BUILD_NONE
  147.       if1
  148.     %OUT    No Target Product declared by request
  149.       endif
  150.     else
  151.     .err
  152.       if1
  153.         %OUT    The Target Product MUST be defined!
  154.       endif
  155.     endif
  156. endif
  157.  
  158. ;;
  159. ;;------------------====< Hardware Dependencies >====-------------------
  160. ;;
  161.  
  162. if PROAS100                             ;; Media Vision Pro Audio Spectrum Orig
  163. HWREVISION    equ    00000000B    ;; the H/W revision #
  164. endif
  165. if PROAS200                ;; Media Vision Pro Audio Spectrum Plus
  166. HWREVISION    equ    00000001B    ;; the H/W revision #
  167. endif
  168. if PROAS300                ;; Media Vision Pro Audio Spectrum 16
  169. HWREVISION    equ    00000001B    ;; the H/W revision #
  170. endif
  171. if CDPC                 ;; Media Vision CDPC
  172. HWREVISION    equ    00000111B    ;; the H/W revision #
  173. endif
  174.  
  175.  
  176. if (PRODUCTDEFINED AND bMVSBEMUL)
  177.   if (PRODUCTDEFINED AND bMVA508)
  178.     L_SB    equ    L_FREE
  179.     R_SB    equ    R_FREE
  180.   else
  181.     L_SB    equ    L_SPEAKER
  182.     R_SB    equ    R_SPEAKER
  183.   endif
  184. endif
  185.  
  186.  
  187. if (PRODUCTDEFINED AND bMVA508)
  188. VOLUMEMAX    equ    MVVOLUMEMAX
  189. else
  190. VOLUMEMAX    equ    NSVOLUMEMAX
  191. endif
  192.  
  193.  
  194.